package com.yida.gwj.api.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.yida.common.core.annotation.Excel;
import com.yida.common.core.web.domain.BaseEntity;
import com.yida.common.core.xss.Xss;


import java.util.Date;

/**
 * 计算标准对象 common_calculate_type
 *
 * @author lqq
 * @date 2022-12-13
 */
public class GwjConfCalculateType extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 计算标准ID
	 */
	@Excel(name = "计算标准ID")
	private Long calculateTypeId;

	/**
	 * 名称
	 */
	@Excel(name = "名称")
	@Xss(message = "计算标准名称不能包含脚本字符")
	private String name;

	/**
	 * 计算公式
	 */
	private String formula;

	/**
	 * 是否需要获取基数 0：否1：是
	 */
	private String getValFlag;

	/**
	 * 逻辑删除 （0存在，2删除）
	 */
	@Excel(name = "逻辑删除", readConverterExp = "0=存在,2=删除")
	private String delFlag;

	/**
	 * 状态（0正常 1停用）
	 */
	@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
	private String status;

	/**
	 * 开始时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	@Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
	private Date startTime;

	public Long getCalculateTypeId() {
		return calculateTypeId;
	}

	public void setCalculateTypeId(Long calculateTypeId) {
		this.calculateTypeId = calculateTypeId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getFormula() {
		return formula;
	}

	public void setFormula(String formula) {
		this.formula = formula;
	}

	public String getGetValFlag() {
		return getValFlag;
	}

	public void setGetValFlag(String getValFlag) {
		this.getValFlag = getValFlag;
	}

	public String getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("GwjConfCalculateType{");
		sb.append("calculateTypeId=").append(calculateTypeId);
		sb.append(", name='").append(name).append('\'');
		sb.append(", formula='").append(formula).append('\'');
		sb.append(", getValFlag='").append(getValFlag).append('\'');
		sb.append(", delFlag='").append(delFlag).append('\'');
		sb.append(", status='").append(status).append('\'');
		sb.append(", startTime=").append(startTime);
		sb.append('}');
		return sb.toString();
	}
}
